#ifndef __FTASKIMPL_H__
#define __FTASKIMPL_H__

#include <QWidget>

#include "STask.h"
#include "fTask.h"
#include "CTaskProviders.h"

class fTaskImpl : public QWidget
{
	Q_OBJECT
	
public:
	
	enum FTaskMode
	{
		TAM_NEW,
		TAM_EDIT
	};

	fTaskImpl(FTaskMode mode, QWidget *parent = 0);
	
	void setTask(STask *task);
	STask* task();

private:
	fTask *m_fTask;
	STask *m_task;
	FTaskMode m_mode;
};

#endif //__FTASKIMPL_H__
